package com.scf.service.factory;

import com.scf.entity.User;
import com.scf.service.UserService;
import com.scf.uitl.ResultStatus;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author author
 * @create 2021-11-11-15:32
 */
@Component
public class UserServiceFallbackFactory implements FallbackFactory<UserService> {
    @Override
    public UserService create(Throwable throwable) {
        UserService userService=new UserService() {
            @Override
            public User getUser(User user) {
                return null;
            }

        };
        return userService;
    }
}
